In this repository are the data and analyses scripts, as well as the full stimuli for the five experiments included in "It's not what you did, it's what you could have done" by Regan M. Bernhard, Hannah LeBaron, and Jonathan Phillips.

For most studies, there are 5 relevant components:
1. rawdata.mat files - This is a .mat file of the raw data. It was converted to a .mat file from a .csv that was downloaded from from qualtrics. Before being converted all participant identifying information was removed.
2. condition_matrices.mat files - These .mat files are used by the matlab data cleaning scripts to make importing of the condition information easier. 
3. datacleaning.m files - These are the matlab scripts used to clean the data for each study. Before producing the final clean datafile, they produce a temporary data file. These temporary datafiles need to be manually checked for the qualitative attention check questions and then reloaded into matlab. They then produce the final data files which are called completefinaldata_foranalyses.csv. If no qualitative data needs to be check, these data cleaning files simply produce the final file for analyses called foranalylses.csv
4. foranalyses.csv or completefinaldata_foranalyses.csv - These are the final data files used for analyses.
5. analyses.Rmd - These R Markdown files run all of the final analyses as well as create all the figures used in the manuscript. 

The exception to this is Experiment 3a, 3b, and 3c which each include just a raw data file, an analysis script, and a clean data file. 

Finally, the complete stimuli and instructions for each experiment are provided as a qsf file compatible with Qualtrics. 
